﻿using NDesk.Options;

namespace AutoBuild.Console.CommandLine
{

    public class CommandLineOptionSet : OptionSet
    {
        //---- Properties -----------------------------------------------------
        public CommandLineAutoBuildArguments Result { get; private set; }

        //---------------------------------------------------------
        public CommandLineOptionSet(CommandLineAutoBuildArguments options)
        {
            Result = options;
            Add("r|runner=", "The {NAME} of the build runner to use.", v => Result.RunnerName = v);
            Add("f|folder=", "The {FOLDER} to watch for changes. (If you specify [folder] this option is ignored!)", v => Result.WatchFolder = v);
			Add("d|debug", "Enable debug output.", v => Result.Debug = true);
            Add("?|help", "Shows this help.", v => Result.ShowHelp = true);

        }


    }
}